package com.loong.shop.common.forehead.param;

import com.loong.common.validator.group.CommonValidate;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description:
 * @Author: 刘群
 * @Date: 2020/11/6 13:46
 */
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class GoodsSkuForeheadParam {
    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空",groups = {CommonValidate.class})
    private Long goodsBaseId;
    /**
     * 规格组
     */
    @NotEmpty(message = "商品规格组不能为空",groups = {CommonValidate.class})
    private List<Long> goodsSpecification;
}
